import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @BelongsProject: JavaWeb
 * @BelongsPackage: PACKAGE_NAME
 * @Author: LiYing
 * @CreateTime: 2020-12-13 19:12
 * @Description:
 */
public class Response2 extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        Object key = req.getAttribute("key");
        System.out.println(key);

        resp.getWriter().write("response2's result");

    }
}
